<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

 

<link rel="stylesheet" type="text/css" href="<?php echo base_url('/assets/css/common.css') ?>" />

<link rel="stylesheet" type="text/css" href="<?php echo base_url('/assets/css/menu_assets/styles.css') ?>" />

	



<script type="text/javascript" src="<?php echo base_url('/assets/js/framework/jquery.js') ?>"></script>



<script type="text/javascript" src="<?php echo base_url('/assets/js/common/common.js') ?>"></script>

<script type="text/javascript" src="<?php echo base_url('/assets/js/slide/jquery.nivo.slider.js') ?>"></script>

<style type="text/css">

h1 {text-shadow:2px 2px #FF0000;}

</style>



<script src="<?php echo $language == "vietname" ? "http://connect.facebook.net/vi_VN/all.js": "http://connect.facebook.net/en_US/all.js"; ?>" ></script>

<script>

	  FB.init({

	    status : true, // check login status

	    cookie : true, // enable cookies to allow the server to access the session

	    xfbml  : true  // parse XFBML

	  });

	 

</script>



			

<script>

$(document).ready(function() {

	

});

function redirect_page_view(id){

	window.location = "<?php echo base_url('product/view/')?>" +id;

}



/*** 

    Simple jQuery Slideshow Script

    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)

***/



function slideSwitch(id) {

    var $active = $('#'+id+' IMG.active');



    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');



    // use this to pull the images in the order they appear in the markup

    var $next =  $active.next().length ? $active.next()

        : $('#'+id+' IMG:first');



    $active.addClass('last-active');

    $active.animate({opacity: 0.0});

    $active.css("display","none");

    $next.css({opacity: 0.0})

        .addClass('active')

        .animate({opacity: 1.0}, 1000, function() {

            $active.removeClass('active last-active');

        });

    $next.css("display","");

}



$(function() {

	slideSwitch('slideshow_newaodai');

    setInterval( "slideSwitch('slideshow_newaodai')", 3000 );

    

   // slideSwitch('slideshow_bestsale');

   // setInterval( "slideSwitch('slideshow_bestsale')", 4000 );

    

    slideSwitch('slideshow');

    setInterval( "slideSwitch('slideshow')", 5000 );

});



</script>



<div id="mypage">

 

<div id="top">

	<table width="960">

		<tr>

			<td width="300" ><img src="<?php  echo base_url('assets/image/logo02.png')?>" ></img></td>

			<td style="text-align:right;">

				 <div id="slideshow">

				 	 <img   src="<?php  echo base_url("assets/image/top3.jpg");?>" data-thumb="images/up.jpg" alt=""/>

					 <img   src="<?php  echo base_url("assets/image/top2.jpg");?>" data-thumb="images/up.jpg" alt=""  />

					 <img   src="<?php  echo base_url("assets/image/top7.jpg");?>" data-thumb="images/up.jpg" alt=""  />

		             <img   src="<?php echo base_url("assets/image/top1.jpg");?>" data-thumb="images/up.jpg" alt=""  />

	             </div>

	            

			</td>

		</tr>

	</table>          



</div> 

<div id="menu_search">

	<?php include ('menu_search.php')?>

</div>

<div id="body">

<table>

	<tr>

		<td style="vertical-align:top">

			<div >

				<?php if ($is_admin == 0){?>

						<div class="title_left border-left" ><?php echo lang('best_sale')?></div>	

						<div id="slideshow_newaodai" class="border-left" >				

							<?php foreach ($best_sale as  $item ){?>

							<!-- <a  style="margin-bottom:2px;"href="<?php // echo base_url('product/view/'.$item->id)?>" title ="images/image1_big.jpg"> -->

								<img height="150" src="<?php echo base_url('/assets/image/aodai/'.($item -> id %10)."/".$item->image ); ?>" onclick="redirect_page_view(<?php echo $item->id?>)">

							<?php }?>

						</div>

						<?php echo $calendar ?>

						<div class="title_left border-left" ><?php echo lang('new_item')?></div>

						<div id="slideshow_bestsaled" class="border-left"  >

							 <marquee behavior="scroll" onmouseout="this.start()" onmouseover="this.stop()" scrolldelay="1" scrollamount="2" direction="left" align="absmiddle">										

							<?php foreach ($new_aodai as  $item ){?>

								<img height="150" src="<?php echo base_url('/assets/image/aodai/'.($item -> id %10)."/".$item->image); ?>"  onclick="redirect_page_view(<?php echo $item->id?>)">

								

							<?php }?>

							</marquee>

						</div>	

				<?php }else{?>

				<?php }?>

							

			</div>

			

		</td>

		<td style="vertical-align:top">

			<div id="content" style ="width:560px;">

			

		

	